package edu.kjxy.day02Synchronized.synchronizedMethodLockObject2;

/**
 * 功能:
 * 作者:程序员欧阳子韩
 * 日期:2024/2/1 19:10
 */
public class ThreadA extends Thread{
    private MyObject object;
    public ThreadA(MyObject object){
        super();
        this.object = object;
    }

    @Override
    public void run() {
        super.run();
        object.methodA();
    }
}
